home *** CD-ROM | disk | FTP | other *** search
/ Magnum One / Magnum One (Mid-American Digital) (Disc Manufacturing).iso / d19 / virtst11.arc / README < prev   
Text File  |  1990-08-09  |  6KB  |  172 lines

  1.  
  2. This is one of my contributions to humanity, meant to stave off the 
  3. virus danger brought about by twerpy little hackers.
  4.  
  5.  
  6. Updated 6/25/90
  7.  
  8.  
  9. What this is
  10. ------------
  11.  
  12.   This is version 1.01 of the "virus/validity" tester for PCBoard 
  13. 14.5
  14.  
  15.  
  16.   If you don't know already, PCB 14.5 now includes a PCBTEST.BAT 
  17. file that will let you put in any code you want to act on uploaded 
  18. files. OR (optionally) you can have the user available PCBoard 
  19. command TEST available to your users (uses the same PCBTEST.BAT 
  20. file) so that they can test files online before downloading them.
  21.  
  22.  
  23.  
  24. Error in first release
  25. ----------------------
  26.  
  27.   The first release I did was missing a GOTO and would sometimes 
  28. think files that didn't pass for some reason or another were 
  29. viruses. 
  30.  
  31.  
  32.   Also, if you run on a network, don't forget to use NETSCAN  
  33. instead of Viruscan. 
  34.  
  35.  
  36. What you need
  37. -------------
  38.  
  39.   You need a few things for this batch file to work. You need Pkzip, 
  40. LHarc, Pkxarc, and Viruscan (or Netscan if on a network). These all 
  41. need to be in your path somewhere. Try to always have the newest 
  42. Viruscan available, new viruses are found constantly, and the 
  43. Viruscan utility is kept up to date.
  44.  
  45.  
  46. How it works
  47. ------------
  48.  
  49.   This little tester will find any virus that VIRUSCAN is capable of 
  50. finding in a file. However if it does find one you will have to take 
  51. over from there, manually answering the questions on how to deal with 
  52. the virus and the file. I'll be adding some logic to automate this 
  53. when I can actually find a virus to test with this routine. (this is 
  54. the first time i've actually went looking for one and I can't find 
  55. one anywhere, drats!)
  56.  
  57.  
  58.   The little ENTER file I included is simply a "Y<CR>" which emulates 
  59. the manual keyboard input DOS expects in order to clear the work 
  60. directory. You HAVE TO HAVE THIS IN THE CURRENT DIRECTORY!, just 
  61. putting in the path won't do, PCBTEST.BAT won't find it unless it's 
  62. in the same directory.
  63.  
  64.  
  65.   You can add/change/delete any part of this .BAT file however you 
  66. like. In fact you will HAVE to change it, unless your system is setup 
  67. identically to mine you will want to substitute your own drive and 
  68. path locations.  
  69.  
  70.  
  71.   You will need about 90k or more free for this PCBTEST.BAT to 
  72. operate properly, PKZIP and VIRUSCAN both take at least 90k of RAM to 
  73. operate. If you want to know how much memory you have free with 
  74. PCBoard loaded, look in the bottom right hand corner of the status 
  75. bar at the bottom of the screen while you or someone is logged onto 
  76. the board, you will see two numbers with "K" appended to the end, the 
  77. top one is how much memory you have free. If it isn't around 90K or 
  78. more you might not be able to use this PCBTEST.BAT file.
  79.  
  80.  
  81. Multinodes
  82. ----------
  83.  
  84.   There isn't anything node specific about this batch file, modify 
  85. it once to your system and then put a copy in each \PCB 
  86. subdirectory, don't forget to to put the ENTER file in each \PCB 
  87. subdirectory along with each copy of PCBTEST.BAT.
  88.  
  89.  
  90. Testing with other compressors (Pak/Zoo/Arce/SeaArc etc.)
  91. ---------------------------------------------------------
  92.  
  93.   It's simple to add other compression standards to this batch file 
  94. to test validity and for viruses in those compressed files.
  95.  
  96.   
  97.   Just follow this outline to adding new compression testing modules 
  98. to PCBTEST.BAT.
  99.  
  100.              1   2   3   4   5   6   7
  101.  
  102. testfile %1 arc zip txt gif lzh sit  
  103. if errorlevel == 7 goto unknown
  104. if errorlevel == 6 goto end
  105. if errorlevel == 5 goto lzh
  106. if errorlevel == 4 goto end
  107. if errorlevel == 3 goto end
  108. if errorlevel == 2 goto zip
  109. if errorlevel == 1 goto arc
  110.  
  111.  
  112.   Either substitue extensions (.sit, .txt, etc) that you don't want 
  113. with those you do, or add them onto the end (I don't know how many 
  114. testfile.com will process, experiment with it) and remember the 
  115. placement on the command line corresponds to an errorlevel #. Also, 
  116. in the errorlevel section you always have to list errorlevels from
  117. the highest errorlevel to the lowest 7, 6, 5, 4, 3, 2, 1.
  118.  
  119.   Each errorlevel branches to a module (or to the end if you don't 
  120. want a file with that corresponding extension tested). The modules 
  121. are layed out in a particular order that you will have to observe, 
  122. (unless you want to experiment and chagne things around). But the 
  123. organization I have layed out below works well.
  124.  
  125.  
  126. :arc                             1. name of sub-routine
  127. del o:\scan\*.* < enter          2. Clear work subdirectory
  128. pkxarc %1 o:\scan                3. uncompress upload into work dir
  129. scan o: /d /nomem > pcbfail.txt  4. scan the uncompressed files
  130. if errorlevel == 1 goto warning  5. If a virus is found, branch to 
  131.                                     the module that handles it.
  132. zap o:\scan\*.* < enter          6. clear the work directory
  133. pkxarc -t %1 > pcbfail.txt       7. file validity test of upload
  134. if errorlevel == 1 goto end      8. If file is bad, branch to module
  135.                                     that handles this occrurance
  136. del pcbfail.txt                  9. No errors? then delete pcbfail.txt
  137. goto end                        10. all done, exit
  138.  
  139.  
  140.  
  141.  
  142. Comments
  143. --------
  144.  
  145.   Comments, ideas etc. are welcome. I call Salt Air regularly or you 
  146. can contact me on my own system. 
  147.  
  148.  
  149. Karl Van Lear  (sysop)
  150. Nitelog BBS
  151. Monterey CA 
  152. (408)655-1096
  153.  
  154.  
  155.   Also, don't forget to thank David Terry for adding this and the 
  156. many other new capbilities to PCBoard.
  157.  
  158.   
  159.  
  160. PCBoard is a trademark of Clark Development Company, Inc.
  161.  
  162. Viruscan and Netscan are trademarks of MacAfee Associates
  163.  
  164. Pkzip is a trademark of PKWare Inc.
  165.  
  166. LHarc is a tradmark of Haruyasu Yoshizaki
  167.  
  168. Pkxarc is a trademark of ...uhhh ummm, you got me.
  169.  
  170.  
  171.  
  172.